package com.youan.serve.controller.swagger;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youan.serve.dao.domain.Log;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import com.youan.serve.dao.domain.User;
import org.springframework.web.bind.annotation.GetMapping;

/**
* <p>
    *  swagger接口描述文件
    * </p>
*
* @author auto_code
* @since 2020-03-04
*/
@Api(tags = "管理接口")
public interface UserControllerSwagger {

    @ApiOperation(value = "新增一个User实例")
    User addUser(User user) throws Exception;

    @ApiOperation(value = "修改一个User实例")
    User updateUser(User user) throws Exception;

    @ApiOperation(value = "获取所有User实例")
    Page<User> selectAllUser(Page<User> page);

    @ApiOperation(value = "根据主键删除一个User实例")
    void deleteUserByUserId(String userId);

    @ApiOperation(value = "根据主键获取User实例")
    User selectUserByUserId(String userId);

    @ApiOperation(value = "根据传入条件获取User实例")
    Page<User> getUsersByConditions(Page<User> page, String orgId, String userName, String realName, String roleId) throws Exception;
}

